Skip to content

pgadmin: 8.1 -> 8.2, python3Packages.webauthn 1.11.1 -> 2.0.0, python3Packages.flask-security-too: fix pydantic issue#280556

Merged
mkg20001 merged 3 commits intoNixOS:masterfrom
gador:pgadmin-8.2
Jan 17, 2024
Merged

pgadmin: 8.1 -> 8.2, python3Packages.webauthn 1.11.1 -> 2.0.0, python3Packages.flask-security-too: fix pydantic issue#280556
mkg20001 merged 3 commits intoNixOS:masterfrom
gador:pgadmin-8.2

Conversation

@gador
Copy link
Member

@gador gador commented Jan 12, 2024

Description of changes

This is a major update to pgadmin. (https://www.pgadmin.org/docs/pgadmin4/latest/release_notes_8_2.html)
Mainly, a new cli option has been added.
Due to the change, we can drop most of our expose-setup patch.

Required changes to other packages

Updating webauthn is a more elegant solution IMHO than overwriting pydantic version in pgadmin and also fixes the until-now broken flask-security-too.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Module tested successfully in a VM.


Add a 👍 reaction to pull requests you find important.

@gador gador requested a review from mkg20001 January 12, 2024 18:43
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Jan 12, 2024
@ofborg ofborg bot added 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jan 12, 2024
@delroth delroth added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 12, 2024
@mkg20001
Copy link
Member

@ofborg test pgadmin

@mkg20001
Copy link
Member

@ofborg test pgadmin4

@github-actions github-actions bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Jan 12, 2024
@gador
Copy link
Member Author

gador commented Jan 12, 2024

I rebased on current master and found an error, since flask-security-too was marked as broken. This was due to a recent merge of #271586 (and specifically 5fa3852).
I added a fix to use the older version of pydantic and it should evaluate now

@delroth delroth removed the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 12, 2024
@gador
Copy link
Member Author

gador commented Jan 12, 2024

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).

Result of nixpkgs-review pr 280556 run on x86_64-linux 1

1 package blacklisted:
  • nixos-install-tools
4 packages failed to build and are new build failures:
  • irrd: log was empty
  • irrd.dist: log was empty
  • python312Packages.webauthn: log was empty
  • python312Packages.webauthn.dist: log was empty
8 packages built:
  • pgadmin4
  • pgadmin4-desktopmode
  • pgadmin4-desktopmode.dist
  • pgadmin4.dist
  • python311Packages.flask-security-too
  • python311Packages.flask-security-too.dist
  • python311Packages.webauthn
  • python311Packages.webauthn.dist

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

Details python311Packages.webauthn.dist:

Package is missing maintainers.
If the package is using runCommand please make sure to inherit or list one or more maintainers.

got build log for '/nix/store/mvxadj9c2zyspkn2rl3dhx8js5lghcv0-python3.11-webauthn-1.11.1-dist' from 'daemon'
When evaluating attribute ‘python311Packages.webauthn.dist’:
warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?

Near pkgs/development/python-modules/webauthn/default.nix:53:5:

   |
53 |     maintainers = with maintainers; [ ];
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md

python311Packages.webauthn:

Package is missing maintainers.
If the package is using runCommand please make sure to inherit or list one or more maintainers.

got build log for '/nix/store/2lvwkf61pb6v7ds42imds2g0js8b2fpd-python3.11-webauthn-1.11.1' from 'daemon'
When evaluating attribute ‘python311Packages.webauthn’:
warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?

Near pkgs/development/python-modules/webauthn/default.nix:53:5:

   |
53 |     maintainers = with maintainers; [ ];
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md

python312Packages.webauthn.dist:

Package is missing maintainers.
If the package is using runCommand please make sure to inherit or list one or more maintainers.

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?

Near pkgs/development/python-modules/webauthn/default.nix:53:5:

   |
53 |     maintainers = with maintainers; [ ];
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md

python312Packages.webauthn:

Package is missing maintainers.
If the package is using runCommand please make sure to inherit or list one or more maintainers.

warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?

Near pkgs/development/python-modules/webauthn/default.nix:53:5:

   |
53 |     maintainers = with maintainers; [ ];
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md

@gador
Copy link
Member Author

gador commented Jan 12, 2024

Failure in irrd is due to a failure in the build dependency python3Packages.ariadne which seems unrelated to changes made in this PR:

E       AssertionError: assert <snapshottest.pytest.PyTestSnapshotTest object at 0x7fffdf81a110> == [b'Request body cannot be empty']

is a recurring error.

Failure in python312Packages.webauthn seems to stem from a build failure of python3.12-pydantic-1.10.13. My guess is pydantic_1 isn't compatible with python 3.12:


pydantic>         with pytest.raises(TypeError, match=message):
pydantic> >           Foobar()
pydantic> E           TypeError: Can't instantiate abstract class Foobar without an implementation for abstract method 'get_secret_value'
pydantic>
pydantic> tests/test_types.py:2719: TypeError
pydantic>
pydantic> During handling of the above exception, another exception occurred:
pydantic>
pydantic>     def test_secretfield():
pydantic>         class Foobar(SecretField):
pydantic>             ...
pydantic>
pydantic>         message = "Can't instantiate abstract class Foobar with abstract methods? get_secret_value"
pydantic>
pydantic> >       with pytest.raises(TypeError, match=message):
pydantic> E       AssertionError: Regex pattern did not match.
pydantic> E        Regex: "Can't instantiate abstract class Foobar with abstract methods? get_secret_value"
pydantic> E        Input: "Can't instantiate abstract class Foobar without an implementation for abstract method 'get_secret_value'"

are the last two of four test failures.

@gador
Copy link
Member Author

gador commented Jan 13, 2024

@ofborg test pgadmin4

@gador gador marked this pull request as draft January 13, 2024 08:34
gador added 2 commits January 13, 2024 09:54
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
@gador
Copy link
Member Author

gador commented Jan 13, 2024

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).

Result of nixpkgs-review pr 280556 run on x86_64-linux 1

1 package blacklisted:
  • nixos-install-tools
2 packages failed to build and are new build failures:
  • irrd: log was empty
  • irrd.dist: log was empty
10 packages built:
  • pgadmin4
  • pgadmin4-desktopmode
  • pgadmin4-desktopmode.dist
  • pgadmin4.dist
  • python311Packages.flask-security-too
  • python311Packages.flask-security-too.dist
  • python311Packages.webauthn
  • python311Packages.webauthn.dist
  • python312Packages.webauthn
  • python312Packages.webauthn.dist

The following issues got detected with the above build packages.
Please fix at least the ones listed with your changed packages:

Details python311Packages.webauthn.dist:

error: build log of '/nix/store/65wn121xx63bk5d00f3v2bp42zjml60m-python3.11-webauthn-2.0.0-dist' is not available
When evaluating attribute ‘python311Packages.webauthn.dist’:
warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?

Near pkgs/development/python-modules/webauthn/default.nix:49:5:

   |
49 |     maintainers = with maintainers; [ ];
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md

python311Packages.webauthn:

error: build log of '/nix/store/mnf64a1fx5qmd1n4s3lz6m1z9byraic1-python3.11-webauthn-2.0.0' is not available
When evaluating attribute ‘python311Packages.webauthn’:
warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?

Near pkgs/development/python-modules/webauthn/default.nix:49:5:

   |
49 |     maintainers = with maintainers; [ ];
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md

python312Packages.webauthn.dist:

error: build log of '/nix/store/6ccpz5hjcq54ac1w4wvfwmvfmlnyrwzb-python3.12-webauthn-2.0.0-dist' is not available
When evaluating attribute ‘python312Packages.webauthn.dist’:
warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?

Near pkgs/development/python-modules/webauthn/default.nix:49:5:

   |
49 |     maintainers = with maintainers; [ ];
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md

python312Packages.webauthn:

error: build log of '/nix/store/kyzm0skh9dr1860fj3mnpd18fca3n944-python3.12-webauthn-2.0.0' is not available
When evaluating attribute ‘python312Packages.webauthn’:
warning: maintainers-missing
Package does not have a maintainer. Consider adding yourself?

Near pkgs/development/python-modules/webauthn/default.nix:49:5:

   |
49 |     maintainers = with maintainers; [ ];
   |     ^

See: https://github.com/jtojnar/nixpkgs-hammering/blob/master/explanations/maintainers-missing.md

@gador gador marked this pull request as ready for review January 13, 2024 10:00
@gador gador changed the title pgadmin: 8.1 -> 8.2 pgadmin: 8.1 -> 8.2, python3Packages.webauthn 1.11.1 -> 2.0.0, python3Packages.flask-security-too: fix pydantic issue Jan 13, 2024
@risicle
Copy link
Contributor

risicle commented Jan 13, 2024

@ofborg build irrd

Fails for me

@gador
Copy link
Member Author

gador commented Jan 13, 2024

@ofborg build irrd

Fails for me

yes, fails on master, too

@gador
Copy link
Member Author

gador commented Jan 13, 2024

@ofborg test pgadmin4

@delroth delroth added the 12.approvals: 2 This PR was reviewed and approved by two persons. label Jan 15, 2024
also removes pydantic (since webauth 2 doesn't use it anymore)

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
@mkg20001 mkg20001 merged commit f666630 into NixOS:master Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python Python is a high-level, general-purpose programming language. 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants